package com.example.ecs.core;

/**
 * Component类是所有组件的基类
 * 组件包含数据但不包含逻辑
 */
public abstract class Component {
    protected Entity entity;
    
    public void setEntity(Entity entity) {
        this.entity = entity;
    }
    
    public Entity getEntity() {
        return entity;
    }
}